.class public Lcom/waiqin365/compons/c/g;
.super Ljava/lang/Object;


# static fields
.field public static h:I


# instance fields
.field public a:Z

.field public b:Z

.field public c:Z

.field public d:Z

.field public e:Lcom/amap/api/location/AMapLocationClient;

.field public f:Lcom/amap/api/location/AMapLocationClientOption;

.field public g:Lcom/baidu/location/LocationClientOption;

.field private i:I

.field private j:Lcom/waiqin365/compons/c/j;

.field private k:Lcom/baidu/location/LocationClient;

.field private l:Lcom/waiqin365/compons/c/k;

.field private m:Z

.field private n:Lcom/waiqin365/compons/c/l;

.field private o:Lcom/waiqin365/compons/c/f;

.field private p:I

.field private q:Ljava/util/Timer;

.field private r:Landroid/content/Context;

.field private s:Z


# direct methods
.method static constructor <clinit>()V
    .locals 1

    const/16 v0, 0x96

    sput v0, Lcom/waiqin365/compons/c/g;->h:I

    return-void
.end method

.method public constructor <init>(Lcom/waiqin365/compons/c/l;)V
    .locals 6

    const/4 v5, 0x1

    const/4 v0, 0x0

    const/4 v4, 0x0

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    iput v4, p0, Lcom/waiqin365/compons/c/g;->i:I

    iput-object v0, p0, Lcom/waiqin365/compons/c/g;->j:Lcom/waiqin365/compons/c/j;

    iput-object v0, p0, Lcom/waiqin365/compons/c/g;->k:Lcom/baidu/location/LocationClient;

    iput-object v0, p0, Lcom/waiqin365/compons/c/g;->l:Lcom/waiqin365/compons/c/k;

    iput-boolean v4, p0, Lcom/waiqin365/compons/c/g;->a:Z

    iput-boolean v4, p0, Lcom/waiqin365/compons/c/g;->b:Z

    iput-boolean v4, p0, Lcom/waiqin365/compons/c/g;->c:Z

    iput-boolean v4, p0, Lcom/waiqin365/compons/c/g;->d:Z

    iput-boolean v5, p0, Lcom/waiqin365/compons/c/g;->m:Z

    iput-object v0, p0, Lcom/waiqin365/compons/c/g;->n:Lcom/waiqin365/compons/c/l;

    iput-object v0, p0, Lcom/waiqin365/compons/c/g;->o:Lcom/waiqin365/compons/c/f;

    iput v4, p0, Lcom/waiqin365/compons/c/g;->p:I

    iput-boolean v4, p0, Lcom/waiqin365/compons/c/g;->s:Z

    iput-object v0, p0, Lcom/waiqin365/compons/c/g;->e:Lcom/amap/api/location/AMapLocationClient;

    iput-object v0, p0, Lcom/waiqin365/compons/c/g;->f:Lcom/amap/api/location/AMapLocationClientOption;

    invoke-static {}, Landroid/telephony/CellLocation;->requestLocationUpdate()V

    iput-object p1, p0, Lcom/waiqin365/compons/c/g;->n:Lcom/waiqin365/compons/c/l;

    iput v4, p0, Lcom/waiqin365/compons/c/g;->p:I

    new-instance v0, Lcom/amap/api/location/AMapLocationClientOption;

    invoke-direct {v0}, Lcom/amap/api/location/AMapLocationClientOption;-><init>()V

    iput-object v0, p0, Lcom/waiqin365/compons/c/g;->f:Lcom/amap/api/location/AMapLocationClientOption;

    iget-object v0, p0, Lcom/waiqin365/compons/c/g;->f:Lcom/amap/api/location/AMapLocationClientOption;

    sget-object v1, Lcom/amap/api/location/AMapLocationClientOption$AMapLocationMode;->Hight_Accuracy:Lcom/amap/api/location/AMapLocationClientOption$AMapLocationMode;

    invoke-virtual {v0, v1}, Lcom/amap/api/location/AMapLocationClientOption;->setLocationMode(Lcom/amap/api/location/AMapLocationClientOption$AMapLocationMode;)Lcom/amap/api/location/AMapLocationClientOption;

    iget-object v0, p0, Lcom/waiqin365/compons/c/g;->f:Lcom/amap/api/location/AMapLocationClientOption;

    invoke-virtual {v0, v5}, Lcom/amap/api/location/AMapLocationClientOption;->setNeedAddress(Z)Lcom/amap/api/location/AMapLocationClientOption;

    iget-object v0, p0, Lcom/waiqin365/compons/c/g;->f:Lcom/amap/api/location/AMapLocationClientOption;

    invoke-virtual {v0, v5}, Lcom/amap/api/location/AMapLocationClientOption;->setOnceLocation(Z)Lcom/amap/api/location/AMapLocationClientOption;

    iget-object v0, p0, Lcom/waiqin365/compons/c/g;->f:Lcom/amap/api/location/AMapLocationClientOption;

    invoke-virtual {v0, v5}, Lcom/amap/api/location/AMapLocationClientOption;->setWifiActiveScan(Z)V

    iget-object v0, p0, Lcom/waiqin365/compons/c/g;->f:Lcom/amap/api/location/AMapLocationClientOption;

    invoke-virtual {v0, v4}, Lcom/amap/api/location/AMapLocationClientOption;->setMockEnable(Z)V

    iget-object v0, p0, Lcom/waiqin365/compons/c/g;->f:Lcom/amap/api/location/AMapLocationClientOption;

    const-wide/16 v2, 0x7d0

    invoke-virtual {v0, v2, v3}, Lcom/amap/api/location/AMapLocationClientOption;->setInterval(J)Lcom/amap/api/location/AMapLocationClientOption;

    iget-object v0, p0, Lcom/waiqin365/compons/c/g;->f:Lcom/amap/api/location/AMapLocationClientOption;

    invoke-virtual {v0, v4}, Lcom/amap/api/location/AMapLocationClientOption;->setLocationCacheEnable(Z)V

    new-instance v0, Lcom/baidu/location/LocationClientOption;

    invoke-direct {v0}, Lcom/baidu/location/LocationClientOption;-><init>()V

    iput-object v0, p0, Lcom/waiqin365/compons/c/g;->g:Lcom/baidu/location/LocationClientOption;

    iget-object v0, p0, Lcom/waiqin365/compons/c/g;->g:Lcom/baidu/location/LocationClientOption;

    sget-object v1, Lcom/baidu/location/LocationClientOption$LocationMode;->Hight_Accuracy:Lcom/baidu/location/LocationClientOption$LocationMode;

    invoke-virtual {v0, v1}, Lcom/baidu/location/LocationClientOption;->setLocationMode(Lcom/baidu/location/LocationClientOption$LocationMode;)V

    iget-object v0, p0, Lcom/waiqin365/compons/c/g;->g:Lcom/baidu/location/LocationClientOption;

    const-string/jumbo v1, "gcj02"

    invoke-virtual {v0, v1}, Lcom/baidu/location/LocationClientOption;->setCoorType(Ljava/lang/String;)V

    iget-object v0, p0, Lcom/waiqin365/compons/c/g;->g:Lcom/baidu/location/LocationClientOption;

    const/16 v1, 0x7d0

    invoke-virtual {v0, v1}, Lcom/baidu/location/LocationClientOption;->setScanSpan(I)V

    iget-object v0, p0, Lcom/waiqin365/compons/c/g;->g:Lcom/baidu/location/LocationClientOption;

    invoke-virtual {v0, v5}, Lcom/baidu/location/LocationClientOption;->setIsNeedAddress(Z)V

    iget-object v0, p0, Lcom/waiqin365/compons/c/g;->g:Lcom/baidu/location/LocationClientOption;

    invoke-virtual {v0, v5}, Lcom/baidu/location/LocationClientOption;->setIsNeedLocationPoiList(Z)V

    return-void
.end method

.method static synthetic a(Lcom/waiqin365/compons/c/g;)I
    .locals 2

    iget v0, p0, Lcom/waiqin365/compons/c/g;->p:I

    add-int/lit8 v1, v0, 0x1

    iput v1, p0, Lcom/waiqin365/compons/c/g;->p:I

    return v0
.end method

.method static synthetic a(Lcom/waiqin365/compons/c/g;Lcom/waiqin365/compons/c/f;)Lcom/waiqin365/compons/c/f;
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/compons/c/g;->o:Lcom/waiqin365/compons/c/f;

    return-object p1
.end method

.method static synthetic a(Lcom/waiqin365/compons/c/g;Z)Z
    .locals 0

    iput-boolean p1, p0, Lcom/waiqin365/compons/c/g;->m:Z

    return p1
.end method

.method static synthetic b(Lcom/waiqin365/compons/c/g;)I
    .locals 1

    iget v0, p0, Lcom/waiqin365/compons/c/g;->p:I

    return v0
.end method

.method private b(Landroid/content/Context;)V
    .locals 2

    iget-object v0, p0, Lcom/waiqin365/compons/c/g;->l:Lcom/waiqin365/compons/c/k;

    if-nez v0, :cond_0

    new-instance v0, Lcom/waiqin365/compons/c/k;

    const/4 v1, 0x0

    invoke-direct {v0, p0, v1}, Lcom/waiqin365/compons/c/k;-><init>(Lcom/waiqin365/compons/c/g;Lcom/waiqin365/compons/c/h;)V

    iput-object v0, p0, Lcom/waiqin365/compons/c/g;->l:Lcom/waiqin365/compons/c/k;

    :cond_0
    iget-object v0, p0, Lcom/waiqin365/compons/c/g;->e:Lcom/amap/api/location/AMapLocationClient;

    if-nez v0, :cond_1

    new-instance v0, Lcom/amap/api/location/AMapLocationClient;

    invoke-direct {v0, p1}, Lcom/amap/api/location/AMapLocationClient;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/waiqin365/compons/c/g;->e:Lcom/amap/api/location/AMapLocationClient;

    :cond_1
    iget-object v0, p0, Lcom/waiqin365/compons/c/g;->e:Lcom/amap/api/location/AMapLocationClient;

    iget-object v1, p0, Lcom/waiqin365/compons/c/g;->f:Lcom/amap/api/location/AMapLocationClientOption;

    invoke-virtual {v0, v1}, Lcom/amap/api/location/AMapLocationClient;->setLocationOption(Lcom/amap/api/location/AMapLocationClientOption;)V

    iget-object v0, p0, Lcom/waiqin365/compons/c/g;->e:Lcom/amap/api/location/AMapLocationClient;

    iget-object v1, p0, Lcom/waiqin365/compons/c/g;->l:Lcom/waiqin365/compons/c/k;

    invoke-virtual {v0, v1}, Lcom/amap/api/location/AMapLocationClient;->setLocationListener(Lcom/amap/api/location/AMapLocationListener;)V

    return-void
.end method

.method private c(Landroid/content/Context;)V
    .locals 2

    iget-object v0, p0, Lcom/waiqin365/compons/c/g;->k:Lcom/baidu/location/LocationClient;

    if-nez v0, :cond_0

    new-instance v0, Lcom/baidu/location/LocationClient;

    invoke-virtual {p1}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;

    move-result-object v1

    invoke-direct {v0, v1}, Lcom/baidu/location/LocationClient;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/waiqin365/compons/c/g;->k:Lcom/baidu/location/LocationClient;

    :cond_0
    iget-object v0, p0, Lcom/waiqin365/compons/c/g;->j:Lcom/waiqin365/compons/c/j;

    if-nez v0, :cond_1

    new-instance v0, Lcom/waiqin365/compons/c/j;

    invoke-direct {v0, p0}, Lcom/waiqin365/compons/c/j;-><init>(Lcom/waiqin365/compons/c/g;)V

    iput-object v0, p0, Lcom/waiqin365/compons/c/g;->j:Lcom/waiqin365/compons/c/j;

    :cond_1
    iget-object v0, p0, Lcom/waiqin365/compons/c/g;->k:Lcom/baidu/location/LocationClient;

    iget-object v1, p0, Lcom/waiqin365/compons/c/g;->g:Lcom/baidu/location/LocationClientOption;

    invoke-virtual {v0, v1}, Lcom/baidu/location/LocationClient;->setLocOption(Lcom/baidu/location/LocationClientOption;)V

    iget-object v0, p0, Lcom/waiqin365/compons/c/g;->k:Lcom/baidu/location/LocationClient;

    iget-object v1, p0, Lcom/waiqin365/compons/c/g;->j:Lcom/waiqin365/compons/c/j;

    invoke-virtual {v0, v1}, Lcom/baidu/location/LocationClient;->registerLocationListener(Lcom/baidu/location/BDLocationListener;)V

    return-void
.end method

.method static synthetic c(Lcom/waiqin365/compons/c/g;)Z
    .locals 1

    iget-boolean v0, p0, Lcom/waiqin365/compons/c/g;->s:Z

    return v0
.end method

.method static synthetic d(Lcom/waiqin365/compons/c/g;)Landroid/content/Context;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/compons/c/g;->r:Landroid/content/Context;

    return-object v0
.end method

.method static synthetic e(Lcom/waiqin365/compons/c/g;)V
    .locals 0

    invoke-direct {p0}, Lcom/waiqin365/compons/c/g;->m()V

    return-void
.end method

.method static synthetic f(Lcom/waiqin365/compons/c/g;)Lcom/waiqin365/compons/c/f;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/compons/c/g;->o:Lcom/waiqin365/compons/c/f;

    return-object v0
.end method

.method static synthetic g(Lcom/waiqin365/compons/c/g;)V
    .locals 0

    invoke-direct {p0}, Lcom/waiqin365/compons/c/g;->o()V

    return-void
.end method

.method static synthetic h(Lcom/waiqin365/compons/c/g;)V
    .locals 0

    invoke-direct {p0}, Lcom/waiqin365/compons/c/g;->k()V

    return-void
.end method

.method static synthetic i(Lcom/waiqin365/compons/c/g;)V
    .locals 0

    invoke-direct {p0}, Lcom/waiqin365/compons/c/g;->l()V

    return-void
.end method

.method static synthetic j(Lcom/waiqin365/compons/c/g;)Z
    .locals 1

    iget-boolean v0, p0, Lcom/waiqin365/compons/c/g;->m:Z

    return v0
.end method

.method static synthetic k(Lcom/waiqin365/compons/c/g;)Lcom/waiqin365/compons/c/l;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/compons/c/g;->n:Lcom/waiqin365/compons/c/l;

    return-object v0
.end method

.method private k()V
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/compons/c/g;->e:Lcom/amap/api/location/AMapLocationClient;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/compons/c/g;->e:Lcom/amap/api/location/AMapLocationClient;

    invoke-virtual {v0}, Lcom/amap/api/location/AMapLocationClient;->stopLocation()V

    :cond_0
    return-void
.end method

.method private l()V
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/compons/c/g;->k:Lcom/baidu/location/LocationClient;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/compons/c/g;->k:Lcom/baidu/location/LocationClient;

    invoke-virtual {v0}, Lcom/baidu/location/LocationClient;->stop()V

    :cond_0
    return-void
.end method

.method static synthetic l(Lcom/waiqin365/compons/c/g;)V
    .locals 0

    invoke-direct {p0}, Lcom/waiqin365/compons/c/g;->n()V

    return-void
.end method

.method private m()V
    .locals 3

    const/4 v2, 0x2

    const/4 v1, 0x1

    iget v0, p0, Lcom/waiqin365/compons/c/g;->p:I

    if-ge v0, v2, :cond_1

    iget-boolean v0, p0, Lcom/waiqin365/compons/c/g;->c:Z

    if-eqz v0, :cond_1

    const-string/jumbo v0, "WqLocation:\u5207\u6362\u5230\u9ad8\u5fb7\u5b9a\u4f4d "

    invoke-static {v0}, Lcom/fiberhome/gaea/client/d/d;->b(Ljava/lang/String;)V

    iput-boolean v1, p0, Lcom/waiqin365/compons/c/g;->b:Z

    invoke-direct {p0}, Lcom/waiqin365/compons/c/g;->k()V

    invoke-direct {p0}, Lcom/waiqin365/compons/c/g;->l()V

    iput v1, p0, Lcom/waiqin365/compons/c/g;->p:I

    iget-object v0, p0, Lcom/waiqin365/compons/c/g;->r:Landroid/content/Context;

    invoke-direct {p0, v0}, Lcom/waiqin365/compons/c/g;->b(Landroid/content/Context;)V

    invoke-virtual {p0}, Lcom/waiqin365/compons/c/g;->g()V

    :cond_0
    :goto_0
    return-void

    :cond_1
    iget v0, p0, Lcom/waiqin365/compons/c/g;->p:I

    if-lt v0, v2, :cond_0

    invoke-direct {p0}, Lcom/waiqin365/compons/c/g;->o()V

    invoke-direct {p0}, Lcom/waiqin365/compons/c/g;->k()V

    invoke-direct {p0}, Lcom/waiqin365/compons/c/g;->l()V

    const-string/jumbo v0, "WqLocation:\u767e\u5ea6\u5b9a\u4f4d\u7ed3\u675f "

    invoke-static {v0}, Lcom/fiberhome/gaea/client/d/d;->b(Ljava/lang/String;)V

    iget-boolean v0, p0, Lcom/waiqin365/compons/c/g;->m:Z

    if-nez v0, :cond_0

    iput-boolean v1, p0, Lcom/waiqin365/compons/c/g;->m:Z

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v1, "WqLocation:\u767e\u5ea6\u5b9a\u4f4d\u56de\u8c03\u8fd4\u56de\u4f4d\u7f6e\u4fe1\u606f="

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v0, p0, Lcom/waiqin365/compons/c/g;->o:Lcom/waiqin365/compons/c/f;

    if-eqz v0, :cond_2

    iget-object v0, p0, Lcom/waiqin365/compons/c/g;->o:Lcom/waiqin365/compons/c/f;

    invoke-virtual {v0}, Lcom/waiqin365/compons/c/f;->toString()Ljava/lang/String;

    move-result-object v0

    :goto_1
    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/fiberhome/gaea/client/d/d;->b(Ljava/lang/String;)V

    iget-object v0, p0, Lcom/waiqin365/compons/c/g;->n:Lcom/waiqin365/compons/c/l;

    iget-object v1, p0, Lcom/waiqin365/compons/c/g;->o:Lcom/waiqin365/compons/c/f;

    invoke-interface {v0, v1}, Lcom/waiqin365/compons/c/l;->a(Lcom/waiqin365/compons/c/f;)V

    goto :goto_0

    :cond_2
    const-string/jumbo v0, ""

    goto :goto_1
.end method

.method private n()V
    .locals 3

    const/4 v2, 0x2

    const/4 v1, 0x1

    iget v0, p0, Lcom/waiqin365/compons/c/g;->p:I

    if-ge v0, v2, :cond_1

    iget-boolean v0, p0, Lcom/waiqin365/compons/c/g;->d:Z

    if-eqz v0, :cond_1

    const-string/jumbo v0, "WqLocation:\u5207\u6362\u5230\u767e\u5ea6\u5b9a\u4f4d "

    invoke-static {v0}, Lcom/fiberhome/gaea/client/d/d;->b(Ljava/lang/String;)V

    iput-boolean v1, p0, Lcom/waiqin365/compons/c/g;->a:Z

    invoke-direct {p0}, Lcom/waiqin365/compons/c/g;->l()V

    invoke-direct {p0}, Lcom/waiqin365/compons/c/g;->k()V

    iput v1, p0, Lcom/waiqin365/compons/c/g;->p:I

    iget-object v0, p0, Lcom/waiqin365/compons/c/g;->r:Landroid/content/Context;

    invoke-direct {p0, v0}, Lcom/waiqin365/compons/c/g;->c(Landroid/content/Context;)V

    invoke-virtual {p0}, Lcom/waiqin365/compons/c/g;->i()V

    :cond_0
    :goto_0
    return-void

    :cond_1
    iget v0, p0, Lcom/waiqin365/compons/c/g;->p:I

    if-lt v0, v2, :cond_0

    invoke-direct {p0}, Lcom/waiqin365/compons/c/g;->o()V

    invoke-direct {p0}, Lcom/waiqin365/compons/c/g;->l()V

    invoke-direct {p0}, Lcom/waiqin365/compons/c/g;->k()V

    const-string/jumbo v0, "WqLocation:\u9ad8\u5fb7\u5b9a\u4f4d\u7ed3\u675f "

    invoke-static {v0}, Lcom/fiberhome/gaea/client/d/d;->b(Ljava/lang/String;)V

    iget-boolean v0, p0, Lcom/waiqin365/compons/c/g;->m:Z

    if-nez v0, :cond_0

    iput-boolean v1, p0, Lcom/waiqin365/compons/c/g;->m:Z

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v1, "WqLocation:\u9ad8\u5fb7\u5b9a\u4f4d\u56de\u8c03\u8fd4\u56de\u4f4d\u7f6e\u4fe1\u606f="

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v0, p0, Lcom/waiqin365/compons/c/g;->o:Lcom/waiqin365/compons/c/f;

    if-eqz v0, :cond_2

    iget-object v0, p0, Lcom/waiqin365/compons/c/g;->o:Lcom/waiqin365/compons/c/f;

    invoke-virtual {v0}, Lcom/waiqin365/compons/c/f;->toString()Ljava/lang/String;

    move-result-object v0

    :goto_1
    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/fiberhome/gaea/client/d/d;->b(Ljava/lang/String;)V

    iget-object v0, p0, Lcom/waiqin365/compons/c/g;->n:Lcom/waiqin365/compons/c/l;

    iget-object v1, p0, Lcom/waiqin365/compons/c/g;->o:Lcom/waiqin365/compons/c/f;

    invoke-interface {v0, v1}, Lcom/waiqin365/compons/c/l;->a(Lcom/waiqin365/compons/c/f;)V

    goto :goto_0

    :cond_2
    const-string/jumbo v0, ""

    goto :goto_1
.end method

.method private o()V
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/compons/c/g;->q:Ljava/util/Timer;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/compons/c/g;->q:Ljava/util/Timer;

    invoke-virtual {v0}, Ljava/util/Timer;->cancel()V

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/waiqin365/compons/c/g;->q:Ljava/util/Timer;

    :cond_0
    return-void
.end method


# virtual methods
.method public a()V
    .locals 1

    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/waiqin365/compons/c/g;->a:Z

    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/waiqin365/compons/c/g;->b:Z

    return-void
.end method

.method public a(I)V
    .locals 0

    iput p1, p0, Lcom/waiqin365/compons/c/g;->i:I

    return-void
.end method

.method public a(Landroid/content/Context;)V
    .locals 1

    iget-boolean v0, p0, Lcom/waiqin365/compons/c/g;->a:Z

    if-eqz v0, :cond_0

    invoke-direct {p0, p1}, Lcom/waiqin365/compons/c/g;->c(Landroid/content/Context;)V

    :cond_0
    iget-boolean v0, p0, Lcom/waiqin365/compons/c/g;->b:Z

    if-eqz v0, :cond_1

    invoke-direct {p0, p1}, Lcom/waiqin365/compons/c/g;->b(Landroid/content/Context;)V

    :cond_1
    iput-object p1, p0, Lcom/waiqin365/compons/c/g;->r:Landroid/content/Context;

    const/4 v0, 0x0

    iput v0, p0, Lcom/waiqin365/compons/c/g;->p:I

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/waiqin365/compons/c/g;->o:Lcom/waiqin365/compons/c/f;

    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/waiqin365/compons/c/g;->m:Z

    return-void
.end method

.method public a(Z)V
    .locals 0

    iput-boolean p1, p0, Lcom/waiqin365/compons/c/g;->s:Z

    return-void
.end method

.method public b()V
    .locals 2

    const/4 v1, 0x1

    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/waiqin365/compons/c/g;->a:Z

    iput-boolean v1, p0, Lcom/waiqin365/compons/c/g;->b:Z

    iput-boolean v1, p0, Lcom/waiqin365/compons/c/g;->d:Z

    return-void
.end method

.method public c()V
    .locals 1

    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/waiqin365/compons/c/g;->a:Z

    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/waiqin365/compons/c/g;->b:Z

    return-void
.end method

.method public d()V
    .locals 2

    const/4 v1, 0x1

    iput-boolean v1, p0, Lcom/waiqin365/compons/c/g;->a:Z

    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/waiqin365/compons/c/g;->b:Z

    iput-boolean v1, p0, Lcom/waiqin365/compons/c/g;->c:Z

    return-void
.end method

.method public e()V
    .locals 5

    const/4 v4, 0x0

    iget-boolean v0, p0, Lcom/waiqin365/compons/c/g;->a:Z

    if-eqz v0, :cond_0

    invoke-virtual {p0}, Lcom/waiqin365/compons/c/g;->i()V

    :cond_0
    iget-boolean v0, p0, Lcom/waiqin365/compons/c/g;->b:Z

    if-eqz v0, :cond_1

    invoke-virtual {p0}, Lcom/waiqin365/compons/c/g;->g()V

    :cond_1
    :try_start_0
    invoke-static {}, Landroid/telephony/CellLocation;->requestLocationUpdate()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :goto_0
    iget v0, p0, Lcom/waiqin365/compons/c/g;->i:I

    if-lez v0, :cond_2

    iget-object v0, p0, Lcom/waiqin365/compons/c/g;->q:Ljava/util/Timer;

    if-nez v0, :cond_2

    new-instance v0, Ljava/util/Timer;

    invoke-direct {v0}, Ljava/util/Timer;-><init>()V

    iput-object v0, p0, Lcom/waiqin365/compons/c/g;->q:Ljava/util/Timer;

    iget-object v0, p0, Lcom/waiqin365/compons/c/g;->q:Ljava/util/Timer;

    new-instance v1, Lcom/waiqin365/compons/c/i;

    invoke-direct {v1, p0}, Lcom/waiqin365/compons/c/i;-><init>(Lcom/waiqin365/compons/c/g;)V

    iget v2, p0, Lcom/waiqin365/compons/c/g;->i:I

    int-to-long v2, v2

    invoke-virtual {v0, v1, v2, v3}, Ljava/util/Timer;->schedule(Ljava/util/TimerTask;J)V

    :cond_2
    iput v4, p0, Lcom/waiqin365/compons/c/g;->p:I

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/waiqin365/compons/c/g;->o:Lcom/waiqin365/compons/c/f;

    iput-boolean v4, p0, Lcom/waiqin365/compons/c/g;->m:Z

    return-void

    :catch_0
    move-exception v0

    goto :goto_0
.end method

.method public f()V
    .locals 1

    iget-boolean v0, p0, Lcom/waiqin365/compons/c/g;->a:Z

    if-eqz v0, :cond_0

    invoke-direct {p0}, Lcom/waiqin365/compons/c/g;->l()V

    :cond_0
    iget-boolean v0, p0, Lcom/waiqin365/compons/c/g;->b:Z

    if-eqz v0, :cond_1

    invoke-direct {p0}, Lcom/waiqin365/compons/c/g;->k()V

    :cond_1
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/waiqin365/compons/c/g;->m:Z

    invoke-direct {p0}, Lcom/waiqin365/compons/c/g;->o()V

    return-void
.end method

.method public g()V
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/compons/c/g;->e:Lcom/amap/api/location/AMapLocationClient;

    invoke-virtual {v0}, Lcom/amap/api/location/AMapLocationClient;->startLocation()V

    return-void
.end method

.method public h()V
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/compons/c/g;->e:Lcom/amap/api/location/AMapLocationClient;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/compons/c/g;->e:Lcom/amap/api/location/AMapLocationClient;

    invoke-virtual {v0}, Lcom/amap/api/location/AMapLocationClient;->onDestroy()V

    :cond_0
    iget-object v0, p0, Lcom/waiqin365/compons/c/g;->k:Lcom/baidu/location/LocationClient;

    if-eqz v0, :cond_1

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/waiqin365/compons/c/g;->k:Lcom/baidu/location/LocationClient;

    :cond_1
    return-void
.end method

.method public i()V
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/compons/c/g;->k:Lcom/baidu/location/LocationClient;

    invoke-virtual {v0}, Lcom/baidu/location/LocationClient;->start()V

    return-void
.end method

.method protected j()V
    .locals 1

    invoke-direct {p0}, Lcom/waiqin365/compons/c/g;->l()V

    invoke-direct {p0}, Lcom/waiqin365/compons/c/g;->k()V

    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/waiqin365/compons/c/g;->m:Z

    iget-object v0, p0, Lcom/waiqin365/compons/c/g;->n:Lcom/waiqin365/compons/c/l;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/compons/c/g;->n:Lcom/waiqin365/compons/c/l;

    invoke-interface {v0}, Lcom/waiqin365/compons/c/l;->a()V

    :cond_0
    return-void
.end method
